package com.zone.gateway.core.executor;

import com.zone.gateway.core.datasource.Connection;
import com.zone.gateway.core.session.Configuration;

/**
 * @author: zongzi
 * @description: 简单执行器
 * @date: 2025/4/22
 */
public class SimpleExecutor extends BaseExecutor {

    public SimpleExecutor(Configuration configuration, Connection connection) {
        super(configuration, connection);
    }

    @Override
    protected Object doExecute(String methodName, String[] paramsType, Object[] args) {
        // 获取返回结果
        return connection.execute(methodName, paramsType, args);
    }
}
